package com.stlm2.core.base;

import com.stlm2.core.common.page.PageView;
import com.stlm2.dems.entity.User;

import java.util.List;
import java.util.Map;

/**
 * service基本接口

 */
public interface BaseService<T> {

	PageView getPage(PageView pageView, Map<String, Object> params)
			throws Exception;

	List<User> getList(PageView pageView, Map<String, Object> params)
			throws Exception;

	void addEntity(T entity) throws Exception;

	void updateEntity(T entity) throws Exception;

	void deleteEntityById(Integer id) throws Exception;

	T findEntityById(Long id) throws Exception;

	List<T> getAll() throws Exception;



}
